home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
ACCOUTIL
/
LTSTIPS1.LZH
/
BATFILES.123
next >
Wrap
File List
|
1985-11-28
|
5KB
|
88 lines
123 Batch File
(PC Magazine Vol 4 No 7 April 2, 1985 Spreadsheet Clinic)
A problem arises when you use a hard disk with worksheet files
located in several subdirectories. It is inconvenient to use a
/Worksheet Global Default Directory command each time you use 123.
Using batch files eases this difficulty.
Let's suppose that 123 resides in C:\LOTUS, and worksheet files
are in the C:\WP, C:\WP\BUDGET and C:\PRODUCT\FORECAST subdirectories.
Start by copying the file 123.CNF to 123X.CNF. Enter 123 and issue a
/Worksheet Global Default Directory command. Enter a subdirectory in
which you have worksheet files, such as C:\WP\BUDGET. Now do an Update
to write the change to the file 123.CNF. Exit 123, and rename 123.CNF
to an appropriate file such as BUDGET.CNF. Now copy 123X.CNF to
123.CNF. Repeat these steps for each subdirectory as necessary.
Rename LOTUS.COM to LOTUSX.COM. Create the batch file LOTUS.BAT:
C>COPY CON:LOTUS.BAT
ECHO OFF
COPY%1.CNF 123.CNF>NUL
LOTUSX
COPY 123X.CNF 123.CNF>NUL
To use the batch file, enter a command such as: C>LOTUS BUDGET
and 123 will be brought up with the correct default directory. If you
don't specify a subdirectory on the command line, the original default
directory from 123X.CNF will be used.
Editor's Note: You need to rename the LOTUS.COM file as
LOTUSX.COM to allow the LOTUS.BAT file to execute (otherwise LOTUS.COM
takes precedence, and the .BAT file is ignored). At the time of
execution, whatever text follows the batch filename on the command line
replaces the %1 in the second line. Therefore, in the present example,
COPY %1.CNF 123.CNF will become COPY BUDGET.CNF 123.CNF after you enter
LOTUS BUDGET from DOS. The ECHO OFF statement in the first line and
the >NUL at the ends of lines 2 and 4 are optional and merely suppress
output to the screen while the batch file is running. You could delete
them to remind yourself that 123 is being loaded with a modified
procedure. For those who don't use Lotus's access system and prefer to
enter 123 directly from DOS, the techniques still apply. Use the REN
command to change 123.EXE to 123X.EXE. In the batch file, the third
line, LOTUSX, will be 123X instead. Remember that 123 can't be loaded
from the Lotus access system after this name change.
-----------------------------------------------------------------
A Configuration to Suit Every User
(PC Magazine Vol 4 No 22 Oct 29, 1985 Spreadsheet Clinic)
When several people use 123 on the same hard disk PC, they may
want to set the program defaults to different values. Since default
configuration values are stored in a 256-byte file called 123.CNF, the
solution is to make multiple copies of the configuration file, not of
the much larger program files. A set of individualized batch files
allow everyone who uses 123 on the same machine to install his own
specific 123.CNF file when he first runs the program.
Set up the hard disk so that 123 is in a directory called \LOTUS,
and the files for each user are in subdirectories. Jane's data, for
example, would be in \LOTUS\JANE. Enter the \LOTUS directory and make
a backup of the 123 configuration file with the DOS command:
COPY: 123.cnf 123.bak
Then write this batch file, naming it JANE123.BAT:
COPY C:\LOTUS\JANE\123.CNF C:\LOTUS
CD\LOTUS
123
COPY 123.BAK 123.CNF
CD\
This file copies Jane's configuration file from her subdirectory
to the \LOTUS directory and starts 123. When Jane exits from 123, the
file automatically copies the standard 123 configuration file, which
was saved as 123.BAK, back to 123.CNF. In this way other users, each
with his own .BAT file, can run 123 with the standard configuration.
Editor's Note: You can do several things differently. Name the
different .CNF files JANE.CNF, FRED.CNF, SUSAN.CNF, and so forth, and
put them all in the \LOTUS directory. Then write a batch file with
one replaceable parameter:
CD\LOTUS
COPY %1.CNF 123.CNF
123
COPY 123.BAK 123.CNF
Name this file SETUP.BAT. This way, at the DOS prompt, Jane need type
only SETUP JANE <Enter>, Fred need type only SETUP FRED <Enter>, etc.,
and you get by with just one batch file instead of several. Also,
SETUP.BAT works just as well on a floppy system as on a hard disk.